<?php
namespace app\admin\controller;
class MenuController extends Basic
{
    public function index(){
        $this->redirect(url('index/index'));
    }
    
    public function menus(){
        $this->menu(0,0);
        $models = \app\admin\model\Menu::all();
        $this->assign("list",$models);
        return $this->fetch('menus');
    }
}